package my.mall.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户积分记录表
 * </p>
 *
 * @author fengbo
 * @since 2024-04-22
 */
@TableName("mall_reward_point_record")
class RewardPointRecord {

    @TableId(value = "id", type = IdType.AUTO)
    var id: Long? = null

    /**
     * 记录创建时间
     */
    var createdTime: LocalDateTime? = null

    /**
     * 记录类型
     */
    var recordType: Byte? = null

    /**
     * 记录金额
     */
    var recordAmount: Int? = null

    var userId: Long? = null

    var remark: String? = null

    companion object {

        const val ID : String = "id"


        const val CREATED_TIME : String = "created_time"


        const val RECORD_TYPE : String = "record_type"


        const val RECORD_AMOUNT : String = "record_amount"


        const val USER_ID : String = "user_id"


        const val REMARK : String = "remark"

    }

    override fun toString(): String {
        return "RewardPointRecord{" +
        "id=" + id +
        ", createdTime=" + createdTime +
        ", recordType=" + recordType +
        ", recordAmount=" + recordAmount +
        ", userId=" + userId +
        ", remark=" + remark +
        "}"
    }
}
